import 'package:logger/logger.dart';

class Log {
  static Logger logger = Logger();

  Log._privateConstructor();

  static final Log _instance = Log._privateConstructor();

  factory Log() {
    return _instance;
  }

  void d(dynamic message, [dynamic error, StackTrace? stackTrace]) {
    logger.d(message, error: error, stackTrace: stackTrace);
  }

  void e(dynamic message, [dynamic error, StackTrace? stackTrace]) {
    logger.e(message,error: error, stackTrace: stackTrace);
  }
}
